<template>
  <van-nav-bar :title="$route.meta.title"
               @click-right="onClickRight">
    <template #right>
      <svg-icon iconClass="register" />
      <span>
        <van-tag mark
                 type="success">注册</van-tag>
      </span>
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  name: 'HeaderLogin',
  methods: {
    onClickRight() {
      this.$router.push({ path: '/register' })
    }
  }
}
</script>

<style scoped lang="stylus">
svg
  width 2em
  height 2em
  fill currentColor
  color #969799
span
  display block
</style>
